﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class intergral_gift_address : MpageBase
{
    protected string txtRealName = "";
    protected string txtAddress = "";
    protected string txtPost = "";
    protected string txtmobile = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        txtRealName = loginUserInfo.realname;
        txtAddress = loginUserInfo.zaddress;
        txtPost = loginUserInfo.u_position;
        txtmobile = loginUserInfo.realb;
    }
    protected void sumbmitBtn_Click(object sender, EventArgs e)
    {
        Model.CMember cmodle = BLL.CMember.GetModel(loginUserInfo.Id);
        if (cmodle != null && cmodle.Id > 0)
        {
            cmodle.realname = txtRealName;
            cmodle.zaddress = txtAddress;
            cmodle.u_position = txtPost;
            cmodle.realb = txtmobile;
            BLL.CMember.Update(cmodle);
        }
    }
}